package com.yaps.petstore.stateless.customer;

import com.yaps.petstore.entity.Address;
import com.yaps.petstore.entity.customer.Customer;

import javax.ejb.Remote;
import java.util.List;

/**
 * @author Antonio Goncalves
 */
@Remote
public interface CustomerRemote {

    // ======================================
    // =             Constantes             =
    // ======================================
    Customer createCustomer(Customer customer, Address homeAddress) ;

    Customer findCustomer(Long customerId) ;

    void deleteCustomer(Customer customer) ;

    Customer updateCustomer(Customer customer, Address homeAddress) ;

    List<Customer> findCustomers() ;
}